package com.kgc.easyshopping.dao;

import com.kgc.easyshopping.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    int deleteByPrimaryKey(Integer oid);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer oid);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    //管理员的全部订单
    List<Order> selectAll(Map<String, Object> params);

    //我的订单
    List<Order> selectUserOrder(String userid);

    Order selectBySerialnumber(String serialnumber);
}